<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div>
	<form id="f_action" action="<c:url value='/admin/cases/action/save.do'/>" method="post">
		<input type="hidden" name="scenarioId" value="${scenarioId}">
		<input type="hidden" name="actionx.actionId" value="${actionx.actionId}">
		<table id="t_action_detail">
			<tr>
				<th width="75px">动作名称</th>
				<td>
					<input type="text" name="actionx.actionName" value="${actionx.actionName}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">是否可见</th>
				<td>
					<select name="actionx.visible">
						<option value="1" <c:if test="${actionx.visible ==1}">selected="selected"</c:if>>可见</option>
						<option value="-1" <c:if test="${actionx.visible ==-1}">selected="selected"</c:if>>不可见</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_action_enabled" name="actionx.enabled" value="1"/>
					<script type="text/javascript">
						var actionEnabled = "<c:out value='${actionx.enabled}' />";
						var actionEnabledValue = parseInt(actionEnabled);
						if(actionEnabledValue == 1){
							$("#f_action_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
				<td>
					<input type="submit" value="保存">
				</td>
			</tr>
		</table>
	</form>
</div>